import { service } from '@/service'
const baseUrl='/hbsys-system/scoringRules'

//民非

//根据页面获取民非信息
export const addRule = (data?: any) => {
  return service.request({
    url: `${baseUrl}/add`,
    method: 'POST',
    data
  })
}

//查询评分规则
export const searchRule = () => {
  return service.request({
    url: `${baseUrl}/queryAll`,
    method: 'GET',
  })
}

//删除评分规则
export const removeRule = (data?: any) => {
  return service.request({
    url: `${baseUrl}/deleteById?id=${data.id}`,
    method: 'DELETE',
  })
}

//删除评分规则
export const getFirstDict = () => {
  return service.request({
    url: `${baseUrl}/queryOptions`,
    method: 'GET'
  })
}

export default { addRule ,searchRule,removeRule,getFirstDict}
  
